package cn.wanho.service;

import cn.wanho.dto.CmsUser;
import cn.wanho.rvo.ResultVO;

import java.text.ParseException;

public interface CmsUserService {
    /**
     * 创建用户
     * @param userName
     * @param placeId
     */
    public ResultVO addUser(String userName, Integer placeId);

    /**
     * 修改密码
     * @param oldPassword
     * @param newPassword
     * @return
     */
    public ResultVO modifyPassword(String oldPassword,String newPassword);

    /**
     * 查看所有学生成绩（不判断是否授课完结）
     */
    public ResultVO selectStudentGrade(Integer classId,Integer stageId,Integer teacherId,String studentName,Integer stageNum) throws ParseException;

    /**
     * 查看所有老师
     * @return
     */
    public ResultVO selectAllTeacher(Integer pageNum,Integer rowsNum);

    /**
     * 移除老师
     * @param userId
     * @return
     */
    public ResultVO removeTeacher(Integer userId);

    /**
     * 查询没有班级的学生
     * @return
     */
    public ResultVO selectAllStudent(Integer pageNum,Integer rowsNum);

    /**
     * 获取所有老师
     * @return
     */
    public ResultVO selectAllTeacher2();


}
